package designpattern.factory.abstrac;

/**
 * @author bingo
 * @Date 2018/3/19
 */
public class Client{

    public static void main(String[] args) {
        AbstractFactory  macFactory = new MacFactory();
        AbstractFactory  pcFactory = new PcFactory();

        AbstractCpu macCpu = macFactory.createCpu();
        AbstractCpu pcCpu = pcFactory.createCpu();


        AbstractStorage macStorage = macFactory.createStorage();
        AbstractStorage pcStorage = pcFactory.createStorage();


        macCpu.doSomething();
        pcCpu.doSomething();
        macStorage.doSomething();
        pcStorage.doSomething();







    }
}
